import java.util.HashSet;
import java.util.Locale;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 牛客旧键盘题目
 * User: xwl
 */
public class Test2 {

    public void func(String str1, String str2) {
        int count = 0;
        Set<Character> set = new HashSet<>();
        // 遍历str1
        for (char ch : str2.toUpperCase().toCharArray()) {
            set.add(ch);
        }
        Set<Character> setBroken = new HashSet<>();
        // 遍历str2
        for (char ch : str2.toUpperCase().toCharArray()) {
            if (!set.contains(ch) && !setBroken.contains(ch)) {
                setBroken.add(ch);
                System.out.println(ch);
            }
        }
    }

}
